﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TextWinform
{
    internal class Class1
    {
        /// <summary>
        /// 描述:从程序段开始处的时间
        /// 地址:/Channel/State/acTime
        /// </summary>
        [ComOpcUaData("/Channel/State/acTime", "从程序段开始处的时间", OprTypeEnum.Read, DefaultValue = false)]
        public double acTime { get; set; }
        /// <summary>
        /// 描述:NCK执行了程序段末尾增加计数
        /// 地址:/Channel/State/ncProgEndCounter
        /// </summary>
        [ComOpcUaData("/Channel/State/ncProgEndCounter", "NCK执行了程序段末尾增加计数", OprTypeEnum.Read, DefaultValue = false)]
        public int ncProgEndCounter { get; set; }
        /// <summary>
        /// 描述:加工件数
        /// 地址:/Channel/State/totalParts
        /// </summary>
        [ComOpcUaData("/Channel/State/totalParts", "加工件数", OprTypeEnum.Read, DefaultValue = false)]
        public int totalParts { get; set; }
        /// <summary>
        /// 描述:程序状态
        /// 地址:/Channel/State/progStatus
        /// </summary>
        [ComOpcUaData("/Channel/State/progStatus", "程序状态", OprTypeEnum.Read, DefaultValue = false)]
        public int progStatus { get; set; }
        /// <summary>
        /// 描述:扣除当前程序的当前净运行时间（秒）
        /// 地址:/Channel/State/actProgNetTime
        /// </summary>
        [ComOpcUaData("/Channel/State/actProgNetTime", "扣除当前程序的当前净运行时间（秒）", OprTypeEnum.Read, DefaultValue = false)]
        public int actProgNetTime { get; set; }
        /// <summary>
        /// 描述:程序加工时间
        /// 地址:/Channel/ChannelDiagnose/operatingTime
        /// </summary>
        [ComOpcUaData("/Channel/ChannelDiagnose/operatingTime", "程序加工时间", OprTypeEnum.Read, DefaultValue = false)]
        public int operatingTime { get; set; }
        /// <summary>
        /// 描述:当前NC指令的行号
        /// 地址:/Channel/ProgramInfo/actLineNumber
        /// </summary>
        [ComOpcUaData("/Channel/ProgramInfo/actLineNumber", "当前NC指令的行号", OprTypeEnum.Read, DefaultValue = false)]
        public int actLineNumber { get; set; }
        /// <summary>
        /// 描述:主程序号
        /// 地址:/Channel/ProgramInfo/selectedWorkPProg
        /// </summary>
        [ComOpcUaData("/Channel/ProgramInfo/selectedWorkPProg", "主程序号", OprTypeEnum.Read, DefaultValue = false)]
        public int selectedWorkPProg { get; set; }
        /// <summary>
        /// 描述:当前有效程序名
        /// 地址:/Channel/ProgramInfo/progName
        /// </summary>
        [ComOpcUaData("/Channel/ProgramInfo/progName", "当前有效程序名", OprTypeEnum.Read, DefaultValue = false)]
        public string progName { get; set; }
        /// <summary>
        /// 描述:执行代码
        /// 地址:/Channel/ProgramInfo/actBlock
        /// </summary>
        [ComOpcUaData("/Channel/ProgramInfo/actBlock", "执行代码", OprTypeEnum.Read, DefaultValue = false)]
        public string actBlock { get; set; }
        /// <summary>
        /// 描述:主轴倍率
        /// 地址:/Channel/Spindle/speedOvr
        /// </summary>
        [ComOpcUaData("/Channel/Spindle/speedOvr", "主轴倍率", OprTypeEnum.Read, DefaultValue = false)]
        public float speedOvr { get; set; }
        /// <summary>
        /// 描述:进给轴运行倍率
        /// 地址:/Channel/Spindle/speedOvr[u1,2]
        /// </summary>
        [ComOpcUaData("/Channel/Spindle/speedOvr[u1,2]", "进给轴运行倍率", OprTypeEnum.Read, DefaultValue = false)]
        public float speedOvr1 { get; set; }
        /// <summary>
        /// 描述:主轴实际速度
        /// 地址:/Channel/Spindle/actSpeed
        /// </summary>
        [ComOpcUaData("/Channel/Spindle/actSpeed", "主轴实际速度", OprTypeEnum.Read, DefaultValue = false)]
        public float actSpeed { get; set; }
        /// <summary>
        /// 描述:主轴负载(%)
        /// 地址:/Channel/MachineAxis/aaLoad[6]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/aaLoad[6]", "主轴负载(%)", OprTypeEnum.Read, DefaultValue = false)]
        public float aaLoad6 { get; set; }
        /// <summary>
        /// 描述:进给轴/主轴的电流实际值，单位A（仅在PROFIdrive驱动可用时）
        /// 地址:/Channel/MachineAxis/aaCurr[6]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/aaCurr[6]", "进给轴/主轴的电流实际值，单位A（仅在PROFIdrive驱动可用时）", OprTypeEnum.Read, DefaultValue = false)]
        public float aaCurr6 { get; set; }
        /// <summary>
        /// 描述:CNC工作模式
        /// 地址:/Bag/State/opMode
        /// </summary>
        [ComOpcUaData("/Bag/State/opMode", "CNC工作模式", OprTypeEnum.Read, DefaultValue = false)]
        public int opMode { get; set; }
        /// <summary>
        /// 描述:程序列表
        /// 地址:/Sinumerik/FileSystem
        /// </summary>
        [ComOpcUaData("/Sinumerik/FileSystem", "程序列表", OprTypeEnum.Read, DefaultValue = false)]
        public string FileSystem { get; set; }
        /// <summary>
        /// 描述:所选NC程序的运行时间(单位:秒)
        /// 地址:/Channel/ChannelDiagnose/cycleTime
        /// </summary>
        [ComOpcUaData("/Channel/ChannelDiagnose/cycleTime", "所选NC程序的运行时间(单位:秒)", OprTypeEnum.Read, DefaultValue = false)]
        public int cycleTime { get; set; }
        /// <summary>
        /// 描述:一个报警的序号(系统开机后到目前为止有多少个报警)0=未知报警
        /// 地址:/Nck/LastAlarm/alarmNo
        /// </summary>
        [ComOpcUaData("/Nck/LastAlarm/alarmNo", "一个报警的序号(系统开机后到目前为止有多少个报警)0=未知报警", OprTypeEnum.Read, DefaultValue = false)]
        public int alarmNo { get; set; }
        /// <summary>
        /// 描述:报警参数1
        /// 地址:/Nck/LastAlarm/fillText1
        /// </summary>
        [ComOpcUaData("/Nck/LastAlarm/fillText1", "报警参数1", OprTypeEnum.Read, DefaultValue = false)]
        public string fillText1 { get; set; }
        /// <summary>
        /// 描述:报警参数2
        /// 地址:/Nck/LastAlarm/fillText2
        /// </summary>
        [ComOpcUaData("/Nck/LastAlarm/fillText2", "报警参数2", OprTypeEnum.Read, DefaultValue = false)]
        public string fillText2 { get; set; }
        /// <summary>
        /// 描述:报警参数3
        /// 地址:/Nck/LastAlarm/fillText3
        /// </summary>
        [ComOpcUaData("/Nck/LastAlarm/fillText3", "报警参数3", OprTypeEnum.Read, DefaultValue = false)]
        public string fillText3 { get; set; }
        /// <summary>
        /// 描述:报警参数4
        /// 地址:/Nck/LastAlarm/fillText4
        /// </summary>
        [ComOpcUaData("/Nck/LastAlarm/fillText4", "报警参数4", OprTypeEnum.Read, DefaultValue = false)]
        public string fillText4 { get; set; }
        /// <summary>
        /// 描述:报警号（当前报警）
        /// 地址:/Nck/LastAlarm/textIndex
        /// </summary>
        [ComOpcUaData("/Nck/LastAlarm/textIndex", "报警号（当前报警）", OprTypeEnum.Read, DefaultValue = false)]
        public int textIndex { get; set; }
        /// <summary>
        /// 描述:驱动报警ZK1信息
        /// 地址:/Nck/MachineAxis/driveClass1Alarm
        /// </summary>
        [ComOpcUaData("/Nck/MachineAxis/driveClass1Alarm", "驱动报警ZK1信息", OprTypeEnum.Read, DefaultValue = false)]
        public string driveClass1Alarm { get; set; }
        /// <summary>
        /// 描述:电机温度报警
        /// 地址:/Nck/MachineAxis/driveMotorTempWarn
        /// </summary>
        [ComOpcUaData("/Nck/MachineAxis/driveMotorTempWarn", "电机温度报警", OprTypeEnum.Read, DefaultValue = false)]
        public string driveMotorTempWarn { get; set; }
        /// <summary>
        /// 描述:驱动器总线CRC故障
        /// 地址:/Nck/MachineAxis/driveNumCrcErrors
        /// </summary>
        [ComOpcUaData("/Nck/MachineAxis/driveNumCrcErrors", "驱动器总线CRC故障", OprTypeEnum.Read, DefaultValue = false)]
        public string driveNumCrcErrors { get; set; }
        /// <summary>
        /// 描述:X轴当前值
        /// 地址:/Channel/GeometricAxis/actProgPos[u1,1]
        /// </summary>
        [ComOpcUaData("/Channel/GeometricAxis/actProgPos[u1,1]", "X轴当前值", OprTypeEnum.Read, DefaultValue = false)]
        public float actProgPos1x { get; set; }
        /// <summary>
        /// 描述:X轴目标值
        /// 地址:/Channel/GeometricAxis/cmdProgPos[u1,1]
        /// </summary>
        [ComOpcUaData("/Channel/GeometricAxis/cmdProgPos[u1,1]", "X轴目标值", OprTypeEnum.Read, DefaultValue = false)]
        public float cmdProgPos1x { get; set; }
        /// <summary>
        /// 描述:Y轴当前值
        /// 地址:/Channel/GeometricAxis/actProgPos[u1,2]
        /// </summary>
        [ComOpcUaData("/Channel/GeometricAxis/actProgPos[u1,2]", "Y轴当前值", OprTypeEnum.Read, DefaultValue = false)]
        public float actProgPos2y { get; set; }
        /// <summary>
        /// 描述:Y轴目标值
        /// 地址:/Channel/GeometricAxis/cmdProgPos[u1,2]
        /// </summary>
        [ComOpcUaData("/Channel/GeometricAxis/cmdProgPos[u1,2]", "Y轴目标值", OprTypeEnum.Read, DefaultValue = false)]
        public float cmdProgPos2y { get; set; }
        /// <summary>
        /// 描述:Z轴当前值
        /// 地址:/Channel/GeometricAxis/actProgPos[u1,3]
        /// </summary>
        [ComOpcUaData("/Channel/GeometricAxis/actProgPos[u1,3]", "Z轴当前值", OprTypeEnum.Read, DefaultValue = false)]
        public float actProgPos3z { get; set; }
        /// <summary>
        /// 描述:Z轴目标值
        /// 地址:/Channel/GeometricAxis/cmdProgPos[u1,3]
        /// </summary>
        [ComOpcUaData("/Channel/GeometricAxis/cmdProgPos[u1,3]", "Z轴目标值", OprTypeEnum.Read, DefaultValue = false)]
        public float cmdProgPos3z { get; set; }
        /// <summary>
        /// 描述:轴1
        /// 地址:/Channel/MachineAxis/name[u1,1]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/name[u1,1]", "轴1", OprTypeEnum.Read, DefaultValue = false)]
        public float name1 { get; set; }
        /// <summary>
        /// 描述:轴2
        /// 地址:/Channel/MachineAxis/name[u1,2]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/name[u1,2]", "轴2", OprTypeEnum.Read, DefaultValue = false)]
        public float name2 { get; set; }
        /// <summary>
        /// 描述:轴3
        /// 地址:/Channel/MachineAxis/name[u1,3]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/name[u1,3]", "轴3", OprTypeEnum.Read, DefaultValue = false)]
        public float name3 { get; set; }
        /// <summary>
        /// 描述:轴4
        /// 地址:/Channel/MachineAxis/name[u1,4]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/name[u1,4]", "轴4", OprTypeEnum.Read, DefaultValue = false)]
        public float name4 { get; set; }
        /// <summary>
        /// 描述:轴5
        /// 地址:/Channel/MachineAxis/name[u1,5]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/name[u1,5]", "轴5", OprTypeEnum.Read, DefaultValue = false)]
        public float name5 { get; set; }
        /// <summary>
        /// 描述:轴6
        /// 地址:/Channel/MachineAxis/name[u1,6]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/name[u1,6]", "轴6", OprTypeEnum.Read, DefaultValue = false)]
        public float name6 { get; set; }
        /// <summary>
        /// 描述:轴7
        /// 地址:/Channel/MachineAxis/name[u1,7]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/name[u1,7]", "轴7", OprTypeEnum.Read, DefaultValue = false)]
        public float name7 { get; set; }
        /// <summary>
        /// 描述:轴8
        /// 地址:/Channel/MachineAxis/name[u1,8]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/name[u1,8]", "轴8", OprTypeEnum.Read, DefaultValue = false)]
        public float name8 { get; set; }
        /// <summary>
        /// 描述:B轴当前值
        /// 地址:/Channel/MachineAxis/actToolBasePos[u1,4]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/actToolBasePos[u1,4]", "B轴当前值", OprTypeEnum.Read, DefaultValue = false)]
        public float actToolBasePos4b { get; set; }
        /// <summary>
        /// 描述:B轴目标值
        /// 地址:/Channel/GeometricAxis/cmdProgPos[u1,4]
        /// </summary>
        [ComOpcUaData("/Channel/GeometricAxis/cmdProgPos[u1,4]", "B轴目标值", OprTypeEnum.Read, DefaultValue = false)]
        public float cmdProgPos4b { get; set; }
        /// <summary>
        /// 描述:B轴扭距
        /// 地址:/Nck/ServoData/nckServoDataActCurr32
        /// </summary>
        [ComOpcUaData("/Nck/ServoData/nckServoDataActCurr32", "B轴扭距", OprTypeEnum.Read, DefaultValue = false)]
        public float nckServoDataActCurr32 { get; set; }
        /// <summary>
        /// 描述:C轴当前值
        /// 地址:/Channel/MachineAxis/actToolBasePos[u1,4]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/actToolBasePos[u1,4]", "C轴当前值", OprTypeEnum.Read, DefaultValue = false)]
        public float actToolBasePos4c { get; set; }
        /// <summary>
        /// 描述:C轴目标值
        /// 地址:/Channel/GeometricAxis/cmdProgPos[u1,5]
        /// </summary>
        [ComOpcUaData("/Channel/GeometricAxis/cmdProgPos[u1,5]", "C轴目标值", OprTypeEnum.Read, DefaultValue = false)]
        public float cmdProgPos5c { get; set; }
        /// <summary>
        /// 描述:F进给速度当前值
        /// 地址:/Channel/State/actFeedRateIpo[u1,1]
        /// </summary>
        [ComOpcUaData("/Channel/State/actFeedRateIpo[u1,1]", "F进给速度当前值", OprTypeEnum.Read, DefaultValue = false)]
        public float actFeedRateIpo { get; set; }
 
        /// <summary>
        /// 描述:S主轴转速当前值
        /// 地址:/Channel/Spindle/cmdSpeed[u1,1]
        /// </summary>
        [ComOpcUaData("/Channel/Spindle/cmdSpeed[u1,1]", "S主轴转速当前值", OprTypeEnum.Read, DefaultValue = false)]
        public float cmdSpeed { get; set; }
        /// <summary>
        /// 描述:主轴负载
        /// 地址:/Channel/Spindle/driveLoad
        /// </summary>
        [ComOpcUaData("/Channel/Spindle/driveLoad", "主轴负载", OprTypeEnum.Read, DefaultValue = false)]
        public float driveLoad { get; set; }
        /// <summary>
        /// 描述:主轴运行倍率
        /// 地址:/Channel/Spindle/speedOvr[u1,1]
        /// </summary>
        [ComOpcUaData("/Channel/Spindle/speedOvr[u1,1]", "主轴运行倍率", OprTypeEnum.Read, DefaultValue = false)]
        public float speedOvr2 { get; set; }
        /// <summary>
        /// 描述:当前刀具号
        /// 地址:/Channel/State/actTNumber
        /// </summary>
        [ComOpcUaData("/Channel/State/actTNumber", "当前刀具号", OprTypeEnum.Read, DefaultValue = false)]
        public int actTNumber { get; set; }
        /// <summary>
        /// 描述:X轴当前值
        /// 地址:/Channel/MachineAxis/actToolBasePos[u1,1]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/actToolBasePos[u1,1]", "X轴当前值", OprTypeEnum.Read, DefaultValue = false)]
        public float actToolBasePosx { get; set; }
        /// <summary>
        /// 描述:X轴负载
        /// 地址:/Channel/MachineAxis/aaLoad[u1,1]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/aaLoad[u1,1]", "X轴负载", OprTypeEnum.Read, DefaultValue = false)]
        public float aaLoadx { get; set; }
        /// <summary>
        /// 描述:X轴目标值
        /// 地址:/Channel/GeometricAxis/cmdProgPos[u1,1]
        /// </summary>
        [ComOpcUaData("/Channel/GeometricAxis/cmdProgPos[u1,1]", "X轴目标值", OprTypeEnum.Read, DefaultValue = false)]
        public float cmdProgPosx { get; set; }
        /// <summary>
        /// 描述:Y轴当前值
        /// 地址:/Channel/MachineAxis/actToolBasePos[u1,2]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/actToolBasePos[u1,2]", "Y轴当前值", OprTypeEnum.Read, DefaultValue = false)]
        public float actToolBasePosy { get; set; }
        /// <summary>
        /// 描述:Y轴负载
        /// 地址:/Channel/MachineAxis/aaLoad[u1,2]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/aaLoad[u1,2]", "Y轴负载", OprTypeEnum.Read, DefaultValue = false)]
        public float aaLoady { get; set; }
        /// <summary>
        /// 描述:Y轴目标值
        /// 地址:/Channel/GeometricAxis/cmdProgPos[u1,2]
        /// </summary>
        [ComOpcUaData("/Channel/GeometricAxis/cmdProgPos[u1,2]", "Y轴目标值", OprTypeEnum.Read, DefaultValue = false)]
        public float cmdProgPosy { get; set; }
        /// <summary>
        /// 描述:Z轴当前值
        /// 地址:/Channel/MachineAxis/actToolBasePos[u1,3]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/actToolBasePos[u1,3]", "Z轴当前值", OprTypeEnum.Read, DefaultValue = false)]
        public float actToolBasePosz { get; set; }
        /// <summary>
        /// 描述:Z轴负载
        /// 地址:/Channel/MachineAxis/aaLoad[u1,3]
        /// </summary>
        [ComOpcUaData("/Channel/MachineAxis/aaLoad[u1,3]", "Z轴负载", OprTypeEnum.Read, DefaultValue = false)]
        public float aaLoadz { get; set; }
        /// <summary>
        /// 描述:Z轴目标值
        /// 地址:/Channel/GeometricAxis/cmdProgPos[u1,3]
        /// </summary>
        [ComOpcUaData("/Channel/GeometricAxis/cmdProgPos[u1,3]", "Z轴目标值", OprTypeEnum.Read, DefaultValue = false)]
        public float cmdProgPosz { get; set; }

    }
}
